package com.gzh.entity;

import lombok.Data;

@Data
public class Result {
    private Integer code;//状态码
    private String error;//提示信息
    private Object data;//数据


    public Result() {
    }

    public Result(Object data) {
        this.code = 0;
        this.error = "ok";
        this.data = data;
    }

    public Result(Integer code, String error) {
        this.code = code;
        this.error = error;
    }

    public Result(Integer code, String error, Object data) {
        this.code = code;
        this.error = error;
        this.data = data;
    }
}
